<?php
//核心控制器
class Controller {
	//跳转方法
	public function jump($url,$message,$wait = 3){
		if ($wait == 0 ){
			header("Location:$url");
		} else {
			//载入message页面
			include CUR_VIEW_PATH . "message.html";
		}
		exit(); //一定要退出
	}

	//加载工具类，如Captcha.class.php
	public function library($lib){
		include LIB_PATH . "{$lib}.class.php";
	}

	//加载辅助函数,如input_helper
	public function helper($helper){
		include HELPER_PATH . "{$helper}_helper.php";
	}
}